/*onmessage = function(message) {
    var list = message.data;
    setTimeout(function() {
        var now = parseInt(new Date().getTime() / 1000) + Number(list.calc);
        postMessage({
            now: now
        });
    }, 1000);
}*/
onmessage = function(message) {
    var list = message.data;
    setInterval(function() {
        var now = parseInt(new Date().getTime() / 1000) + Number(list.calc);
        postMessage({
            now: now
        });
    }, 1000);
}